const { DataTypes } = require("sequelize");

const db = require("../dbConnect")

module.exports = db.define("banner", {
    midImg: {
        type: DataTypes.STRING(),
        allowNull: false
    },
    bigImg: {
        type: DataTypes.STRING(),
        allowNull: false
    },
    title: {
        type: DataTypes.STRING(),
        allowNull: false
    },
    description: {
        type: DataTypes.STRING(),
        allowNull: false
    }
}, {
    freezeTableName: true, // 让默认不加s
    createdAt: false,
    updatedAt: false
})